

BUILDDIR=.

ifeq ($(RELEASE),)
	RELEASE = $(shell $(M_DIR_UTILS)/release.sh)
endif
ifeq ($(STAGE),)
	STAGE = $(shell $(M_DIR_UTILS)/stage.sh)
endif


DEBUG		= # -DDEBUG # Uncomment to turn on debugging

CFLAGS += -DKERNEL $(DEBUG) -D_KVERSION_=\"$(RELEASE)-$(STAGE)\" -I.

LFLAGS += -nostdlib -L$(LIBDIR) -static -Wl,-warn-common,-X,--oformat,elf32-i386,-e,entryPoint,-Ttext,0xC0000000,--build-id=none 
LFLAGS_EXE = 

include Makefile.list

KERNEL = alkrnl
SYMBOLS = $(M_DIR_BUILD)/$(M_P_SYSTEM)/kernelSymbols.txt

TARGETS  = $(KERNEL)
SOURCES  = $(ALLNAMES)
USING_LIB_A = kc 
USING_LIB_NO_DEP = gcc

CMD_AFTER_BUILD_T_$(KERNEL) = $(M_DIR_UTILS)/kernel-symbols.sh $@ $(SYMBOLS) &&
CFLAGS_O_kernelApi = -O0 -Wno-strict-prototypes $(Wno_missing_format_attribute)

include $(M_MAKEBUILD)
 

